How to show the best formula for solving bearings and distances problems